package com.yidu.qx.domain;

import javax.persistence.*;
import java.sql.Time;
import java.util.List;
import java.util.Objects;
import java.util.Set;

/**
 * @program: jurisdiction
 * @description:角色表
 * @author: 张超
 * @create: 2019-09-25 10:22
 */
@SuppressWarnings("ALL")
@Entity
@Table(name = "qx_character", catalog = "")
public class QxCharacterEntity {
    private String chaId;
    private String chaName;
    private String chaComment;
    private String chaState;
    private Long chaSort;
    private Time chaFoundDate;
    private String chaFoundUser;
    private String chaStandby1;
    private String chaStandby2;
    private String chaStandby3;

    private String chaSystem;

    public String getChaSystem() {
        return chaSystem;
    }

    public void setChaSystem(String chaSystem) {
        this.chaSystem = chaSystem;
    }

    private List<QxRolesModulesEntity> md;
    private Set<QxRoleUserEntity> ru;

    public Set<QxRoleUserEntity> getRu() {
        return ru;
    }

    public void setRu(Set<QxRoleUserEntity> ru) {
        this.ru = ru;
    }

    public List<QxRolesModulesEntity> getMd() {
        return md;
    }

    public void setMd(List<QxRolesModulesEntity> md) {
        this.md = md;
    }

    @Id
    @Column(name = "cha_id")
    public String getChaId() {
        return chaId;
    }

    public void setChaId(String chaId) {
        this.chaId = chaId;
    }

    @Basic
    @Column(name = "cha_name")
    public String getChaName() {
        return chaName;
    }

    public void setChaName(String chaName) {
        this.chaName = chaName;
    }

    @Basic
    @Column(name = "cha_comment")
    public String getChaComment() {
        return chaComment;
    }

    public void setChaComment(String chaComment) {
        this.chaComment = chaComment;
    }

    @Basic
    @Column(name = "cha_state")
    public String getChaState() {
        return chaState;
    }

    public void setChaState(String chaState) {
        this.chaState = chaState;
    }

    @Basic
    @Column(name = "cha_sort")
    public Long getChaSort() {
        return chaSort;
    }

    public void setChaSort(Long chaSort) {
        this.chaSort = chaSort;
    }

    @Basic
    @Column(name = "cha_found_date")
    public Time getChaFoundDate() {
        return chaFoundDate;
    }

    public void setChaFoundDate(Time chaFoundDate) {
        this.chaFoundDate = chaFoundDate;
    }

    @Basic
    @Column(name = "cha_found_user")
    public String getChaFoundUser() {
        return chaFoundUser;
    }

    public void setChaFoundUser(String chaFoundUser) {
        this.chaFoundUser = chaFoundUser;
    }

    @Basic
    @Column(name = "cha_standby1")
    public String getChaStandby1() {
        return chaStandby1;
    }

    public void setChaStandby1(String chaStandby1) {
        this.chaStandby1 = chaStandby1;
    }

    @Basic
    @Column(name = "cha_standby2")
    public String getChaStandby2() {
        return chaStandby2;
    }

    public void setChaStandby2(String chaStandby2) {
        this.chaStandby2 = chaStandby2;
    }

    @Basic
    @Column(name = "cha_standby3")
    public String getChaStandby3() {
        return chaStandby3;
    }

    public void setChaStandby3(String chaStandby3) {
        this.chaStandby3 = chaStandby3;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QxCharacterEntity that = (QxCharacterEntity) o;
        return Objects.equals(chaId, that.chaId) &&
                Objects.equals(chaName, that.chaName) &&
                Objects.equals(chaComment, that.chaComment) &&
                Objects.equals(chaState, that.chaState) &&
                Objects.equals(chaSort, that.chaSort) &&
                Objects.equals(chaFoundDate, that.chaFoundDate) &&
                Objects.equals(chaFoundUser, that.chaFoundUser) &&
                Objects.equals(chaStandby1, that.chaStandby1) &&
                Objects.equals(chaStandby2, that.chaStandby2) &&
                Objects.equals(chaStandby3, that.chaStandby3);
    }

    @Override
    public int hashCode() {
        return Objects.hash(chaId, chaName, chaComment, chaState, chaSort, chaFoundDate, chaFoundUser, chaStandby1, chaStandby2, chaStandby3);
    }
}